<template>
  <div class="left-container">
    <h3>Left 组件---子传{{conutFrom}}</h3>
  </div>
</template>

<script>
import bus from '@/event/eventBus.js'
export default {
  data() {
    return {
      conutFrom: 1
    }
  },
  created() {
    bus.$on('share', val => {
      this.conutFrom = val
    })
  }
}
</script>

<style lang="less">
.left-container {
  padding: 0 20px 20px;
  background-color: orange;
  min-height: 250px;
  flex: 1;
}
</style>
